package com.cxhc.demo1006;

import android.content.Context;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {

    protected Context mContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(getLayoutId());

        mContext = this;
        initData();
        initView();
        initListener();
    }

    protected void initData() {
    }

    protected void initView() {
    }

    protected void initListener() {
    }

    ;

    protected abstract int getLayoutId();
}
